package com.wjk.Demo08;

public class FlybleDemo {
    public static void main(String[] args) {
        useFlyable(new Flyable() {
            @Override
            public void fly(String s) {
                System.out.println(s+"芜湖机场准备起飞");
            }
        });

        useFlyable(s->
            System.out.println(s+"芜湖塔台申请起飞")
            );
    }

    public static void useFlyable(Flyable f){
        f.fly("芜湖，这不起飞");
    }
}

interface Flyable{
    void fly(String s);
}
